package cn.niit.service;

import cn.niit.entity.Student;
import cn.niit.entity.query.StudentQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 学生表(Student)表服务接口
 *
 * @author makejava
 * @since 2021-11-14 16:07:43
 */

public interface StudentService {


    PageInfo<Student> queryByStudent(StudentQuery studentQuery);

    PageInfo<Student> queryByStudentName(StudentQuery studentQuery);

    PageInfo<Student> select(StudentQuery studentQuery);

    boolean editStudent(Student student);

    //根据学号查询学生
    Student queryStudentById(Integer id);

    /**
     * 新增数据
     *
     * @param student 实例对象
     * @return 实例对象
     */
    boolean addStudent(Student student);


    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteStudentById(Integer id);
    /**
     * 查询所有学生信息
     */
    List<Student> queryAllStudentList();

}